﻿using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;

using System;
using System.Collections.Generic;
using System.Linq;

namespace Nemerle2.Compiler
{
  /// <summary>
  /// Description of TextMsg.
  /// </summary>
  [Record]
  public class TextMsg : Msg
  {
    _text   : string;
    _markup : string;

    public override Text   : string { get { _text } }
    public override Markup : string { get { _markup } }

    public this(kind : ErrorKind, text : string, isMarkuped : bool)
    {
      base(kind);
      _markup = text;
      _text   = if (isMarkuped) RemoveMarkup(text) else text;
    }
  }
}
